package com.smz.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class TShelves {


    @TableId(value = "id", type = IdType.AUTO)
    private int id;
    private String shelvesNo;
    private String wareId;
    private String dameId;
    private String mainProduct;
    private int totalNum;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private java.sql.Timestamp creatTime;
    @TableField("`status`")
    private String status;
    private String remark;

    @TableField(exist = false)
    private List<TCargo> listTCargoCLs;
    //dy
    @TableField(exist = false)
    private TReservoir tReservoir;
    @TableField(exist = false)
    private List<TCargo> tCargos;

}
